/**
 * Created by dell on 2017/7/20.
 */
public class Student {
    private String name;
    //public Student(){}
    public Student(String name){
        this.name=name;
    }
    private class Id{
        private double id;
        private String department;
        public Id(double id,String department){
            this.id=id;
            this.department=department;
        }
        public void info(){
            System.out.println("学号："+id+"宿舍："+department);
            System.out.println("姓名："+name);
        }
    }
    public void test(){
        Id id=new Id(434545543,"123_511");
        id.info();
    }
    public static void main(String[] args) {
        //Student student=new Student("fire");
        //Id id=new Id(423,"42345");
        new Student("fire").test();
    }
}
